package xuefei

import "fmt"

func XuefeiDe() {
	var a int
	fmt.Println("请输入金额")
	fmt.Scanln(&a)
	jieguo, err := jine(a)
	fmt.Println(jieguo, err)
}
func jine(a int) (result int, errorstr error) {
	if a < 3000 {
		return 0, fmt.Errorf("钱不够")
	} else {
		result = a
		return result, nil
	}
}
